<table class="default">
	<thead>
		<tr>
			<?php foreach ($columns as $column => $data): ?>
				<td><?php echo $column; ?></td>
			<?php endforeach; ?>
			<td></td><td></td>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($sections as $section): ?>
		<tr>
			<?php foreach ($columns as $column => $data): ?>
				<td><?php 
					//$modeldata = ORM::factory('Model')->where('id', '=', $modification->{$column})->find();
					//if ($column == 'model_id')
					//	echo $modification->{$column} .' &mdash; '. $modeldata->producer . ' '. $modeldata->name . ' '. $modeldata->code;
					//else
						echo Text::limit_chars(strip_tags($section->{$column}), 128, '...');
				?></td>
			<?php endforeach; ?>
			<td><a href="<?php echo URL::site(Route::get('backend')->uri(array('controller' => 'forum', 'action' => 'section_edit', 'par1' => $section->id))); ?>">ред.</a></td>
			<td><a href="<?php echo URL::site(Route::get('backend')->uri(array('controller' => 'forum', 'action' => 'section_delete', 'par1' => $section->id))); ?>" onclick="return confirm('Подтверждаете удаление?');">удал.</a></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>
